package com.googlecode.animator.controller
{
	import com.googlecode.animator.model.ProjectSettingsProxy;
	
	import org.puremvc.as3.multicore.interfaces.IProxy;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	/**
	 * Provides basic functionality for commands. 
	 * @author USER
	 * 
	 */
	public class BaseCommand extends SimpleCommand
	{
		/**
		 * Returns typed reference to model. 
		 * @return 
		 * 
		 */
		protected function get settings():ProjectSettingsProxy
		{
			var proxy:IProxy = facade.retrieveProxy(ProjectSettingsProxy.NAME);
			
			return proxy as ProjectSettingsProxy;
		}	
	}
}